package com.bocim.course.serviceImp;

import com.bocim.course.meta.Orders;
import com.bocim.course.meta.Product;
import com.bocim.course.meta.ProductList;

import java.util.List;

/**
 * Created by liujunchen on 2016/11/8.
 */
public interface IProductService {
    public  List<Product> selectAllProduct()  ;
    public  Product selectById(int productId ,int userId ) ;
    public  List<Product>  selelctProductListByuserId (int userId )  ;
    public  boolean insertProduct(Product product) ;
    public  boolean  updateProduct(Product product )  ;
    public  boolean  deleteProduct(int  productId ) ;
    public  void buyProduct(Orders orders ) ;
}
